package net.osweb.crm.modules.event.bean;

import java.sql.Timestamp;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import static javax.persistence.GenerationType.IDENTITY;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * Schedule entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "event_schedule")
public class Schedule implements java.io.Serializable {

	// Fields

	/**
	 * 
	 */
	private static final long serialVersionUID = 6192518999601815684L;
	private Long id;
	private Integer userid;
	private String task;
	private Timestamp builddate;
	private String context;
	private Timestamp createtime;
	private String comment;

	// Constructors

	/** default constructor */
	public Schedule() {
	}

	/** minimal constructor */
	public Schedule(Timestamp builddate) {
		this.builddate = builddate;
	}

	/** full constructor */
	public Schedule(Integer userid, String task, Timestamp builddate,
			String context, Timestamp createtime, String comment) {
		this.userid = userid;
		this.task = task;
		this.builddate = builddate;
		this.context = context;
		this.createtime = createtime;
		this.comment = comment;
	}

	// Property accessors
	@Id
	@GeneratedValue(strategy = IDENTITY)
	@Column(name = "id", unique = true, nullable = false)
	public Long getId() {
		return this.id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	@Column(name = "userid")
	public Integer getUserid() {
		return this.userid;
	}

	public void setUserid(Integer userid) {
		this.userid = userid;
	}

	@Column(name = "task", length = 500)
	public String getTask() {
		return this.task;
	}

	public void setTask(String task) {
		this.task = task;
	}

	@Column(name = "builddate", nullable = false, length = 19)
	public Timestamp getBuilddate() {
		return this.builddate;
	}

	public void setBuilddate(Timestamp builddate) {
		this.builddate = builddate;
	}

	@Column(name = "context", length = 500)
	public String getContext() {
		return this.context;
	}

	public void setContext(String context) {
		this.context = context;
	}

	@Column(name = "createtime", length = 19)
	public Timestamp getCreatetime() {
		return this.createtime;
	}

	public void setCreatetime(Timestamp createtime) {
		this.createtime = createtime;
	}

	@Column(name = "comment")
	public String getComment() {
		return this.comment;
	}

	public void setComment(String comment) {
		this.comment = comment;
	}

}